<template>
	<!-- 积分来源 -->
	<view id="app-wrapper">
		<view class="wrap-header">
			<view :class="{active:true}">
				<text>积分来源</text>
			</view>
			<view :class="{active:false}">
				<text>积分消耗</text>
			</view>
		</view>
		<view class="wrap-main">
			<view class="main-nav"></view>
			<view class="main-box">
				<!-- 每一项 -->
				<view class="box-item">
					<view class="item-left">
						<image src="https://s1.ax1x.com/2020/11/05/BRRqoR.jpg" mode=""></image>
					</view>
					<view class="item-right">
						<view class="right-title">注册账号 <text>正式积分：+1</text></view>
						<view class="right-desc">注册成功，获得2积分</view>
						<view class="right-date">2020-11-22 06:45</view>
					</view>
				</view>
				<!-- 每一项 -->
				<view class="box-item">
					<view class="item-left">
						<image src="https://s1.ax1x.com/2020/11/05/BRRqoR.jpg" mode=""></image>
					</view>
					<view class="item-right">
						<view class="right-title">查看招工信息 <text>正式积分：-1</text></view>
						<view class="right-desc">查看招工信息，扣除100积分查看招工信息，扣除100积分查看招工信息，扣除100积分查看招工信息，扣除100积分</view>
						<view class="right-date">2020-11-22 06:45</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		mounted() {
			console.log(this.$u,'n')
		}
	}
</script>

<style lang="scss" scoped>
	#app-wrapper {
		background-color: #f7f6f9;

		.wrap-header {
			display: flex;
			background-color: #fff;

			view {
				flex: 1;
				height: 85rpx;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				font-size: 32rpx;
				border-bottom: 2rpx solid #e7e7e7;

				text {
					padding-bottom: 5rpx;
				}
			}

			view:last-child {
				border-left: 2rpx solid #e7e7e7;
			}

			view:after {
				content: '';
				width: 15%;
				height: 0;
				display: block;
				border-bottom: 5px solid #fff;
				border-radius: 50px;
			}

			.active {
				color: #0099FF;
			}

			.active:after {
				border-bottom: 5px solid #0099FF;
			}
		}

		.wrap-main {
			.main-box {
				.box-item {
					box-sizing: border-box;
					display: flex;
					padding: 20rpx;
					background-color: #fff;
					margin-top: 20rpx;

					.item-left {
						width: 20%;
						padding-top: 10rpx;
						image {
							width: 100rpx;
							height: 100rpx;
							border-radius: 100rpx;
						}
					}

					.item-right {
						width: 80%;
						.right-title {
							width: 100%;
							font-size: 32rpx;
							font-weight: 600;
							display: flex;

							text {
								margin-left: auto;
								font-size: 28rpx;
								color: #ffb347;
							}
						}

						.right-desc {
							width: 100%;
							padding: 10rpx 0;
							font-size: 30rpx;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						.right-date {
							font-size: 26rpx;
							color: #9e9e9e;
						}
					}


				}
			}
		}
	}
</style>
